@extends('admin.main')
@section('content')
    <div class="admin-content">
        <div class="admin-content-body">
            <div class="am-cf am-padding am-padding-bottom-0">
                <div class="am-fl am-cf">
                    <strong class="am-text-primary am-text-lg">后台设置</strong>
                    /
                    <strong class="am-text-primary am-text-lg">企业信息</strong>
                    {{--/ <small>H5扩展</small>--}}
                </div>
            </div>
            <hr>
            {{--@include('admin.layouts.menu')--}}

            <div class="am-g">
                <div class="am-u-sm-12">
                    <table class="am-table am-table-striped am-table-hover table-main">
                        <thead>
                        <tr>
                            <th class="table-check"><input type="checkbox" /></th>
                            <th class="table-id">ID</th>
                            <th class="table-title">法人姓名</th>
                            <th class="table-type">企业名称</th>
                            <th class="table-type">企业类型</th>
                            {{--<th class="table-author am-hide-sm-only">类型</th>--}}
                            <th class="table-date am-hide-sm-only">创建日期</th>
                            <th class="table-set">操作</th>
                        </tr>
                        </thead>
                        <tbody>
                        @if(count($datas))
                        @foreach($datas as $data)
                        <tr>
                            <td><input type="checkbox"/></td>
                            <td>{{$data->id}}</td>
                            <td><a href="javascript:;">{{$data->legal_name}}</a></td>
                            <td>{{$data->com_name}}</td>
                            <td>{{$model->getCateNameByCate($data->cate)}}</td>
                            <td class="am-hide-sm-only">{{date('Y-m-d H:i',$data->created_at)}}</td>
                            <td>
                                <div class="am-btn-toolbar">
                                    <div class="am-btn-group am-btn-group-xs">
                                        {{--<a href="{{$prefix_url}}/{{$data->id}}/edit">--}}
                                            {{--<button class="am-btn am-btn-default am-btn-xs am-text-secondary">--}}
                                                {{--<span class="am-icon-pencil-square-o"></span>--}}
                                                {{--编辑--}}
                                            {{--</button>--}}
                                        {{--</a>--}}
                                        <a href="{{$prefix_url}}/{{$data->id}}">
                                            <button class="am-btn am-btn-default
                                                am-btn-xs am-text-secondary">
                                                <span class="am-icon-copy"></span>
                                                查看
                                            </button>
                                        </a>
                                        <a href="{{$prefix_url}}/{{$data->id}}/edit">
                                            <button class="am-btn am-btn-default
                                                am-btn-xs am-text-secondary">
                                                <span class="am-icon-edit"></span>
                                                修改
                                            </button>
                                        </a>
                                        <a href="{{$prefix_url}}/option-get?uid={{$data->uid}}&cate={{$data->cate}}">
                                            <button class="am-btn am-btn-default
                                                am-btn-xs am-text-secondary">
                                                <span class="am-icon-copy"></span>
                                                更多资料
                                            </button>
                                        </a>
                                    </div>
                                </div>
                            </td>
                        </tr>
                        @endforeach
                        @else <tr><td colspan="10" style="text-align:center;">
                                没有公司</td></tr>
                        @endif
                        </tbody>
                    </table>
                    @include('admin.layouts.page')
                </div>
            </div>
        </div>
    </div>
@stop